package com.zero.jewelry.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.zero.common.annotation.excel.Excel;
import lombok.Data;

import java.util.Date;

@Data
public class ReviewVo {
    /** 评论ID */
    @Excel(name = "评论ID")
    private Long id;

    /** 用户ID 关联user表的nickname*/
    private Long userId;
    @Excel(name = "用户名")
    private String nickname;

    /** 产品ID 关联product表的name*/
    private Long productId;
    @Excel(name = "产品ID")
    private String productName;

    private String mainImage;

    /** 评分 */
    @Excel(name = "评分")
    private Long rating;

    /** 评论内容 */
    @Excel(name = "评论内容")
    private String content;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
}
